/**
 * webpack 配置
 */
var path = require('path')

function resolve(pathUrl) {
    return path.resolve(__dirname, pathUrl)
}

module.exports = {
    // 基本路径
    publicPath: './',
    // 路径别名
    chainWebpack: function (config) {
        config.resolve.alias
            .set('Css', resolve('src/assets/css'))
            .set('Components', resolve('src/components'))
            .set('Pages', resolve('src/pages'))
            .set('Utils', resolve('src/utils'))
            .set('Store', resolve('src/store'))
            .set('Filters', resolve('src/filters'))
            .set('Img', resolve('src/assets/img'))
            .set('Api', resolve('src/api'))
            .set('Mixins', resolve('src/mixins'))
    }
    // eslint状态
    // lintOnSave: false
}